<template>
  <a-modal :title="title" :width="1100" :maskClosable="false" :visible="visible" @cancel="visible = false" @ok="handleSubmit" :button_loading="button_loading" :footer="null">
    <student-all ref="shareholderall" :display="'choose'" @choosed="choosed"></student-all>
  </a-modal>
</template>
<script>
import StudentAll from '../Choose'
export default {
  components: { StudentAll },
  props: {},
  data() {
    return {
      title: '选择学生',
      visible: false,
      button_loading: false,
    }
  },
  watch: {}, 
  computed: {},
  methods: {
    add() {
      this.visible = true
    },
    edit(data) {
      this.visible = true
      const dataIDs = data.map(a => {
        return a.ID
      })
      setTimeout(() => {
        this.$refs.shareholderall.tranChooseData(dataIDs)
      }, 500)
    },
    choosed(data) {
      this.visible = false
      this.$emit('chooseded', data)
    },
    handleSubmit() {}
  },
  created() {},
  mounted() {}
}
</script>
<style lang="less" scoped></style>
